Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --once flag that will run the entire pipeline exactly once and exit #7569

Closed

Conversation

jacquesh
Copy link
Contributor

I have need of #2546 so I figured I'd give implementing it a shot.
Instead of taking the approach of #6537 I decided instead to see what would happen if we didn't modify any existing code and just duplicated the relevant bits. As was suggested on that PR, there isn't a huge amount of code to be shared between a single run and the usual long-running loop.

Its possible that bits could be refactored out (e.g the filtering and overrides before writing to output) but even in those cases its note a huge amount of code that has been duplicated anyways.

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

…exit.

The use-case for this is any situation where it is preferable to manage
metric posting from some external service (such as cron).
@danielnelson
Copy link
Contributor

I have an open PR that implements this, can you review/test #7474?

@jacquesh jacquesh deleted the feature/run-once-and-terminate branch May 30, 2020 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants